package com.mmall.common;

public enum  ResultCode {

    SUCCESS(200,"成功"),
    USERNAME_NO_EXIST(1001,"用户名不存在"),
    USERNAME_EXIST(1002,"用户名存在"),
    EMAIL_EXIST(1003,"用户邮箱已存在"),
    PASSWD_ERROR(1004,"密码错误"),
    TYPE_ERROR(1005,"类型错误"),
    USER_NO_EXIST(1006,"用户不存在"),
    PARAM_ERROR(1006,"参数错误"),



    USER_IS_EMPTY(2001,"用户未登录，请重新登录。"),




    OTHER_ERROR(9999,"其它错误");


    private int status;
    private String msg;

    ResultCode(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }
    public int getStatus() {
        return status;
    }
    public void setStatus(int status) {
        this.status = status;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
}
